﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;

namespace SC.Net
{
    public class TcpServerRevDataEventArgs: EventArgs 
    {
        /// <summary>
        /// 接收的数据
        /// </summary>
        public readonly byte[] Data;

        /// <summary>
        /// 句柄
        /// </summary>
        public readonly Socket Handler;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        /// <param name="socket"></param>
        public TcpServerRevDataEventArgs(byte[] data, Socket socket)
        {
            Data = data;
            Handler = socket;
        }
    }
}
